package com.thghh.gkrpc.example;

import com.thghh.client.RpcClient;

/**
 * @author Zhikang.Peng
 * @version 1.0
 * @email thghh@qq.com
 * @date 2020/4/14 16:56
 */
public class Client {

    public static void main(String[] args) {
        RpcClient client = new RpcClient();
        CalcService service = client.getProxy(CalcService.class);

        int v1 = service.add(1, 2);
        int v2 = service.minus(2, 1);

        System.out.println(v1);
        System.out.println(v2);
    }
}
